<h1>Listing Authors</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Date of Birth</th>
    <th>Nationality</th>
    <th>Residence</th>
  </tr>

<% for author in @author %>
  <tr  class="<%= cycle('list-line-odd', 'list-line-even') %>">
    <td><%=h author.name %></td>
    <td><%=h author.dob %></td>
    <td><%=h author.nationality %></td>
    <td><%=h author.residence %></td>
    <td><%= link_to 'Show', author_path(author) %></td>
    <td><%= link_to 'Edit', edit_author_path(author) %></td>
    <td><%= link_to 'Destroy', author_path(author), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New author', new_author_path %>